/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfo.web;


import com.lczyfz.campusinfo.modules.campusinfo.entity.CampusinfoSchool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import org.springframework.web.bind.annotation.ResponseBody;

import com.lczyfz.campusinfo.common.web.BaseController;


import com.lczyfz.campusinfo.modules.campusinfo.service.CampusinfoSchoolService;

import com.lczyfz.campusinfo.modules.user.utils.ServerResponse;

import java.util.List;

import javax.servlet.http.HttpServletResponse;

/**
 * 学校管理Controller
 * @author yt
 * @version 2017-10-13
 */
@Controller
@RequestMapping(value = "${frontPath}/campusinfo/campusinfoSchool")
public class CampusinfoApiSchoolController extends BaseController {

	@Autowired
	private CampusinfoSchoolService campusinfoSchoolService;
	
	@ResponseBody
	@RequestMapping(value = "get_schools",method = RequestMethod.POST)
	public ServerResponse<List<CampusinfoSchool>> getSchoolNames(){
		return campusinfoSchoolService.getCampusinfoSchools();
	}
	
	
}